Operation void stop (Throwable o), in Class Thread

Documentation

* Forces the thread to stop executing.
* <p>
* First, the <code>checkAccess</code> method of this thread is called
* with no arguments. This may result in throwing a
* <code>SecurityException </code>(in the current thread).
* <p>
* If the argument <code>obj</code> is null, a
* <code>NullPointerException</code> is thrown (in the current thread).
* <p>
* The thread represented by this thread is forced to complete
* whatever it is doing abnormally and to throw the
* <code>Throwable</code> object <code>obj</code> as an exception. This
* is an unusual action to take; normally, the <code>stop</code> method
* that takes no arguments should be used.
* <p>
* It is permitted to stop a thread that has not yet been started.
* If the thread is eventually started, it immediately terminates.
*
* @param obj the Throwable object to be thrown.
* @exception SecurityException if the current thread cannot modify
* this thread.
* @see java.lang.Thread#checkAccess()
* @see java.lang.Thread#run()
* @see java.lang.Thread#start()
* @see java.lang.Thread#stop()
* @since JDK1.0


ConcurrencySequentialExport ControlPublicAccess



Property Settings

Java
FinalTrueSynchronizedTrue
AbstractFalseStaticFalse
NativeFalse